package simulator.queue;

import java.util.Comparator;

public class EventComparator implements Comparator<Event> 
{
	@Override
	public int compare(Event event1, Event event2) 
	{
		int value = 0;
		if(event2.getTime() < event1.getTime())
			value = 1;
		else if(event1.getTime() < event2.getTime())
			value = -1;
		
		return value;
	};
}
